package com.town.garden.service;

import org.springframework.http.ResponseEntity;

import java.net.URISyntaxException;
import java.security.KeyManagementException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;

/**
 * @Description nvr server login interface
 * @E-mail cwm3412638@163.com
 * @Author cwm
 * @Date 2022/5/13
 */
public interface NvrLoginService {
    /**
     * 登录nvr服务
     *
     * @return
     * @throws URISyntaxException
     * @throws NoSuchAlgorithmException
     * @throws KeyStoreException
     * @throws KeyManagementException
     */
    ResponseEntity<String> login() throws URISyntaxException, NoSuchAlgorithmException, KeyStoreException, KeyManagementException;

    /**
     * 退出登录
     *
     * @return
     */
    ResponseEntity<String> logout();
}
